{extends 'base/site2.html'}
{block name="page_header"}{include file="common/header.html" inline}{/block}
{block name="page_nav"}{include file="common/slide-nav.html" inline}{/block}
{block name="page_styles"}
<link rel="stylesheet" type="text/css" href="/css/mediation/casecenter/index.css" />
    <style>
        :not(.input-group)>.bootstrap-select.form-control:not([class*=col-]){
            width: 100%;
        }
    </style>
{/block}

{block name="page_section"}

{*    <ol class="breadcrumb pad-no">*}
{*        <li><a href="/">{$sysname}</a></li>*}
{*        <li class="active">工作台-案件管理</li>*}
{*    </ol>*}
    <div class="sessionPage">
        <div class="page-header">
          <div class="left">
            <span class="line"></span>
            <strong class="tit">通知公告</strong>
          </div>
          <div class="right">
            <a href="/notice/add"><button class="btn btn-primary col-lg-3 page-header-btn shousuoBtn" style="width:auto;">添加</button></a>
          </div>
        </div>
        <div style="width: 95%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        overflow-x: scroll;">
          <table class="table table-striped table-bordered table-hover" id="tab">
        		<thead>
        			<tr>

                        <th class="text-nowrap">序号</th>
                        <th>内容</th>
                        <th class="text-nowrap">状态</th>
                        <th class="text-nowrap">开始时间</th>
                        <th class="text-nowrap">结束时间</th>
                        <th class="text-nowrap">添加时间</th>
                        <th class="fix-ele">操作</th>
        		</thead>
            <tbody>
              {if $arrList}
                      {foreach from=$arrList key=key item=info}
                          <tr data-caseid="{$info['id']}">

                              <td>{$info['id']}</td>
                              <td width="50%">{$info['content']}</td>
                              <td >
                                  {if $info['status']==1}有效{else}无效{/if}
                              </td>
                              <td >{$info['startTime']|date_format:"%Y-%m-%d %H:%M:%S"}</td>
                              <td>{$info['endTime']|date_format:"%Y-%m-%d %H:%M:%S"}</td>
                              <td>{$info['addTime']|date_format:"%Y-%m-%d %H:%M:%S"}</td>
                              <td class="fix-ele">
                                  <a href="/notice/add?id={$info['id']}">编辑</a >
                              </td>
                          </tr>
                      {/foreach}
                  {/if}
            </tbody>
          </table>
        </div>
        <div class="clearfix pad-no text-nowrap" style="margin-top: 20px;">
            {include file="base/pagenav.html"  action="/mediate/index" pagenum=$curPageNum inline}
            <span style="float:right;margin-right: 10px">共 {$totalnum} 条</span>
        </div>
    </div>

    <div role-side="left" class="ui-slide-box"></div>
    <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content" role-ele="modal">

            </div>
        </div>
    </div>



{/block}
{block name="page_scripts"}

{/block}
